﻿package com.toncen.samepms.system.domain;

import java.util.Date;
import java.util.List;

import com.toncen.samepms.basic.domain.User;
import com.toncen.samepms.common.AbstractDomain;
 
/**
 * 描述：系统消息表SYSTEM_MESSAGE的domain文件
 * 
 * @author zq 
 */
public class Message extends AbstractDomain {
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 1331803603508L;
	
	/**
	 * 主消息标识
	 */ 
	private  long sysId; 	 
    
	/**
	 * 标题
	 */ 
	private  String title; 	 
    
	/**
	 * 内容
	 */ 
	private  String content; 	 
    
	/**
	 * 接收人
	 */ 
	private  String receiver; 	 
    
	/**
	 * 发送人
	 */ 
	private  User sender; 	 
    
	/**
	 * 链接
	 */ 
	private  String targetUrl; 	 
    
	/**
	 * 已读标识
	 */ 
	private  int hasRead; 	 
    
	/**
	 * 发送时间
	 */ 
	private  Date sendTime; 	 
    
	/**
	 * 显示样式
	 */ 
	private  String displayCss; 	 
    
	/**
	 * 显示开始时间
	 */ 
	private  Date startTime; 	 
    
	/**
	 * 显示结束时间
	 */ 
	private  Date endTime; 	 
    
	/**
	 * 消息类型
	 */ 
	private  int type; 	 
	
	/**
	 * 接收人集合
	 */
	private List<User> receiveUserList;
	/**
	 * 子消息
	 */
	private List<Message> childMessageList;
    

	public List<Message> getChildMessageList() {
		return childMessageList;
	}

	public void setChildMessageList(List<Message> childMessageList) {
		this.childMessageList = childMessageList;
	}

	public List<User> getReceiveUserList() {
		return receiveUserList;
	}

	public void setReceiveUserList(List<User> receiveUserList) {
		this.receiveUserList = receiveUserList;
	}

	public Message() {
		super();
	}

	/**
	 * @return the  sysId
	 */
	public  long getSysId() {
		return  sysId;
	}

	/**
	 * @param  sysId
	 *            the  sysId to set
	 */
	public void setSysId( long  sysId) {
		this. sysId =  sysId;
	}
	
	/**
	 * @return the  title
	 */
	public  String getTitle() {
		return  title;
	}

	/**
	 * @param  title
	 *            the  title to set
	 */
	public void setTitle( String  title) {
		this. title =  title;
	}
	
	/**
	 * @return the  content
	 */
	public  String getContent() {
		return  content;
	}

	/**
	 * @param  content
	 *            the  content to set
	 */
	public void setContent( String  content) {
		this. content =  content;
	}
	
	/**
	 * @return the  receiver
	 */
	public  String getReceiver() {
		return  receiver;
	}

	/**
	 * @param  receiver
	 *            the  receiver to set
	 */
	public void setReceiver( String  receiver) {
		this. receiver =  receiver;
	}
	
	/**
	 * @return the  targetUrl
	 */
	public  String getTargetUrl() {
		return  targetUrl;
	}

	/**
	 * @param  targetUrl
	 *            the  targetUrl to set
	 */
	public void setTargetUrl( String  targetUrl) {
		this. targetUrl =  targetUrl;
	}
	
	/**
	 * @return the  hasRead
	 */
	public  int getHasRead() {
		return  hasRead;
	}

	/**
	 * @param  hasRead
	 *            the  hasRead to set
	 */
	public void setHasRead( int  hasRead) {
		this. hasRead =  hasRead;
	}
	
	/**
	 * @return the  sendTime
	 */
	public  Date getSendTime() {
		return  sendTime;
	}

	/**
	 * @param  sendTime
	 *            the  sendTime to set
	 */
	public void setSendTime( Date  sendTime) {
		this. sendTime =  sendTime;
	}
	
	/**
	 * @return the  displayCss
	 */
	public  String getDisplayCss() {
		return  displayCss;
	}

	/**
	 * @param  displayCss
	 *            the  displayCss to set
	 */
	public void setDisplayCss( String  displayCss) {
		this. displayCss =  displayCss;
	}
	
	/**
	 * @return the  startTime
	 */
	public  Date getStartTime() {
		return  startTime;
	}

	/**
	 * @param  startTime
	 *            the  startTime to set
	 */
	public void setStartTime( Date  startTime) {
		this. startTime =  startTime;
	}
	
	/**
	 * @return the  endTime
	 */
	public  Date getEndTime() {
		return  endTime;
	}

	/**
	 * @param  endTime
	 *            the  endTime to set
	 */
	public void setEndTime( Date  endTime) {
		this. endTime =  endTime;
	}
	
	/**
	 * @return the  type
	 */
	public  int getType() {
		return  type;
	}

	/**
	 * @param  type
	 *            the  type to set
	 */
	public void setType( int  type) {
		this. type =  type;
	}

	public User getSender() {
		return sender;
	}

	public void setSender(User sender) {
		this.sender = sender;
	}
	
}
